package com.chinasofti1.info_manager.entry;

import com.chinasofti1.info_manager.controller.OtherStudentController;
import com.chinasofti1.info_manager.controller.TeacherController;

import java.util.Scanner;

public class InfoMangerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        while (true) {
            System.out.println("------------------欢迎来到基础信息管理系统----------------------");
            System.out.println("请输入您的选择：1，学生管理2，老师管理3，退出");
            String choice = sc.next();
            switch (choice){
                case "1" :
                    System.out.println("学生管理");
                    OtherStudentController studentController = new OtherStudentController();
                    studentController.start();
                    break;
                case "2" :
                    System.out.println("老师管理");
                    TeacherController teacherController = new TeacherController();
                    teacherController.start();
                    break;
                case "3" :
                    System.out.println("感谢您的使用");
                    System.exit(30);
                    break;
                    default:
                        System.out.println("你的输入有误，请重新输入");
            }

        }
    }
}
